package cn.lsp.sharkmall.common;

/**
 * @Description: 首页配置枚举类型
 * @Author: sweeterjava@163.com
 * @Date: 2023/2/12
 * @Time: 22:55
 */
public class Constants {

    // 上传文件的默认url前缀，根据部署设置自行修改
    // Linux、Mac
    public final static String FILE_UPLOAD_DIC = "/Users/daiyang/Desktop/upload/";

    // Windows
    // public final static String FILE_UPLOAD_DIC = "D:\\upload\\";

    // 首页轮播图数量(可根据自身需求修改)
    public final static int INDEX_CAROUSEL_NUMBER = 5;

    // 首页一级分类的最大数量
    public final static int INDEX_CATEGORY_NUMBER = 10;

    // 首页热卖商品数量
    public final static int INDEX_GOODS_HOT_NUMBER = 4;

    // 首页新品数量
    public final static int INDEX_GOODS_NEW_NUMBER = 5;

    // 首页推荐商品数量
    public final static int INDEX_GOODS_RECOMMOND_NUMBER = 10;

    // 购物车中商品的最大数量(可根据自身需求修改)
    public final static int SHOPPING_CART_ITEM_TOTAL_NUMBER = 20;

    // 购物车中单个商品的最大购买数量(可根据自身需求修改)
    public final static int SHOPPING_CART_ITEM_LIMIT_NUMBER = 5;

    // 搜索分页的默认条数(每页10条)
    public final static int GOODS_SEARCH_PAGE_LIMIT = 10;

    // 购物车分页的默认条数(每页5条)
    public final static int SHOPPING_CART_PAGE_LIMIT = 5;

    // 我的订单列表分页的默认条数(每页5条)
    public final static int ORDER_SEARCH_PAGE_LIMIT = 5;

    // 商品上架状态
    public final static int SELL_STATUS_UP = 0;

    // 商品下架状态
    public final static int SELL_STATUS_DOWN = 1;

    // token字段长度
    public final static int TOKEN_LENGTH = 32;

    // 默认简介
    public final static String USER_INTRO = "酷鲨商城，让生活更美好！";
}
